package com.jspxcms.plug.repository;

import com.jspxcms.common.orm.Limitable;
import com.jspxcms.plug.domain.PlugHospital;
import com.jspxcms.plug.domain.PlugTest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface PlugTestDao extends Repository<PlugTest, Integer>, PlugTestDaoPlus {

	public Page<PlugTest> findAll(Specification<PlugTest> spec, Pageable pageable);

	public List<PlugTest> findAll(Specification<PlugTest> spec, Limitable limitable);

	public List<PlugTest> findByInfoId(int infoId);

	public PlugTest findOne(Integer id);

	public PlugTest save(PlugTest bean);

	public void delete(PlugTest bean);
}
